package demo14;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/3/7 17:45
 */
public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("fos.dat");
        FileOutputStream fos = new FileOutputStream(file);
        fos.write(1);
        fos.write(2);
        System.out.println("写出完毕！");
        fos.close();
    }
}
